﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPages/common.Master" AutoEventWireup="true" CodeBehind="default.aspx.cs" Inherits="pcsse.MasterPages.WebForm8" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <link href="CSS/default.css" rel="stylesheet" type="text/css" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="hoder_sidebar" runat="server">
    <p>
        上海天气<br />
        <asp:Label ID="lb_tq" runat="server" Text="Label"></asp:Label>
    </p>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="hoder_maincontent" runat="server">
    <div class="colomn">
     <div>
         <a href="News/news_explore.aspx?cateid=14"><img src="images/xwbd.jpg" /></a></div>
     <div class="list">
     
     
         <asp:Repeater ID="Repeater5" runat="server" DataSourceID="SqlDataSource1">
            <ItemTemplate>
                <p><a href='../News/news_read.aspx?id=<%#Eval("NEWS_ID")%>'><span style="color:Gray;">[<%#Eval("DATE").ToString().Substring(0, Eval("DATE").ToString().IndexOf(' '))%>]</span>&nbsp;<%#Eval("TITLE")%></a></p>
            </ItemTemplate>
         </asp:Repeater>
         <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
             ConnectionString="<%$ ConnectionStrings:PCSSE %>" 
             SelectCommand="SELECT [NEWS_ID],[TITLE], [DATE] FROM [T_NEWS] WHERE ([CATEGORY_ID] = @CATEGORY_ID) ORDER BY [DATE] DESC">
             <SelectParameters>
                 <asp:Parameter DefaultValue="14" Name="CATEGORY_ID" Type="Int32" />
             </SelectParameters>
         </asp:SqlDataSource>
     
     
     </div>
    </div>
    <div class="colomn">
     <div>
         <a href="News/news_explore.aspx?cateid=15"><img src="images/gszq.jpg" /></a></div>
     <div class="list">
     
      <asp:Repeater ID="Repeater1" runat="server" DataSourceID="SqlDataSource2">
              <ItemTemplate>
                <p><a href='../News/news_read.aspx?id=<%#Eval("NEWS_ID")%>'><span style="color:Gray;">[<%#Eval("DATE").ToString().Substring(0, Eval("DATE").ToString().IndexOf(' '))%>]</span>&nbsp;<%#Eval("TITLE")%></a></p>
            </ItemTemplate>
         </asp:Repeater>
         <asp:SqlDataSource ID="SqlDataSource2" runat="server" 
             ConnectionString="<%$ ConnectionStrings:PCSSE %>" 
             SelectCommand="SELECT [NEWS_ID],[TITLE], [DATE] FROM [T_NEWS] WHERE ([CATEGORY_ID] = @CATEGORY_ID) ORDER BY [DATE] DESC">
             <SelectParameters>
                 <asp:Parameter DefaultValue="15" Name="CATEGORY_ID" Type="Int32" />
             </SelectParameters>
         </asp:SqlDataSource>
     
     
     </div>
    </div>
    <div class="colomn">
     <div>
        <a href="News/news_explore.aspx?cateid=13"><img src="images/hdtz.jpg" /></a></div>
     <div class="list">
     
     
      <asp:Repeater ID="Repeater2" runat="server" DataSourceID="SqlDataSource3">
                <ItemTemplate>
                <p><a href='../News/news_read.aspx?id=<%#Eval("NEWS_ID")%>'><span style="color:Gray;">[<%#Eval("DATE").ToString().Substring(0, Eval("DATE").ToString().IndexOf(' '))%>]</span>&nbsp;<%#Eval("TITLE")%></a></p>
            </ItemTemplate>
         </asp:Repeater>
         <asp:SqlDataSource ID="SqlDataSource3" runat="server" 
             ConnectionString="<%$ ConnectionStrings:PCSSE %>" 
             SelectCommand="SELECT [NEWS_ID],[TITLE], [DATE] FROM [T_NEWS] WHERE ([CATEGORY_ID] = @CATEGORY_ID) ORDER BY [DATE] DESC">
             <SelectParameters>
                 <asp:Parameter DefaultValue="13" Name="CATEGORY_ID" Type="Int32" />
             </SelectParameters>
         </asp:SqlDataSource>
     
     
     </div>
    </div>
    <div class="colomn">
     <div>
         <a href="News/news_explore.aspx?cateid=16"><img src="images/zbzl.jpg" /></a></div>
     <div class="list">
     
      <asp:Repeater ID="Repeater3" runat="server" DataSourceID="SqlDataSource4">
                <ItemTemplate>
                <p><a href='../News/news_read.aspx?id=<%#Eval("NEWS_ID")%>'><span style="color:Gray;">[<%#Eval("DATE").ToString().Substring(0, Eval("DATE").ToString().IndexOf(' '))%>]</span>&nbsp;<%#Eval("TITLE")%></a></p>
            </ItemTemplate>
         </asp:Repeater>
         <asp:SqlDataSource ID="SqlDataSource4" runat="server" 
             ConnectionString="<%$ ConnectionStrings:PCSSE %>" 
             SelectCommand="SELECT [NEWS_ID],[TITLE], [DATE] FROM [T_NEWS] WHERE ([CATEGORY_ID] = @CATEGORY_ID) ORDER BY [DATE] DESC">
             <SelectParameters>
                 <asp:Parameter DefaultValue="16" Name="CATEGORY_ID" Type="Int32" />
             </SelectParameters>
         </asp:SqlDataSource>
     
     
     </div>
    </div>

</asp:Content>
